package com.ingrun.tuboshu.utils.params;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class RequestParams<T> {

    private Integer page;
    private Integer pageSize;
    private T model;

    public PageParams findPageParams() {
        if (this.pageSize != null && this.page != null) {
            return new PageParams(this.page, this.pageSize);
        }
        return null;
    }

}
